package com.lagou.client;

import com.lagou.client.impl.ResumeFeignClientImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "lagou-sc-service-resume", fallback = ResumeFeignClientImpl.class, path = "/resume")
//@RequestMapping("/resume") 使用@FeignClient的fallback属性后就不能使用该注解不然会报错,添加path属性解决该问题
public interface ResumeFeignClient {

    @GetMapping("/openstate/{userId}")
    Integer findDefaultResumeState(@PathVariable(value = "userId") Long userId);

}
